import React from 'react';

export default class Child1 extends React.Component{
  onChange = (e) => {
    this.props.onChange(e);
  }
  render(){
    return(
      <div>
        Child1
        <input type="text" value={ this.props.money } onChange={ this.onChange } name="" id="" />
        美元
      </div>
    )
  }
}